<!DOCTYPE html>
<html lang="en">
<head>
    {% load static %}
    <meta charset="UTF-8">
    <title>信息汇总</title>
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <link href="https://cdn.bootcss.com/framework7/1.6.5/css/framework7.ios.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/framework7/1.6.5/css/framework7.ios.colors.css" rel="stylesheet">

</head>
<body>

<body>
<div class="views">
     {% csrf_token %}
    <div class="view view-main" data-page="home">
        <div class="pages">
            <div data-page="home" class="page navbar-fixed">
                <form id="advice_add" name="advice_add" action="/advice/add" method="post">
                <div class="page-content">
                    <p id="title" style="margin: 0 1em;">感谢您提出宝贵的意见，如有需要请留下您的联系方式:</p>
                    <div class="list-block">
                        <ul>
                            <li>
                                <div class="item-content">
                                    <div class="item-inner">
                                        <!--div class="item-title label">您的建议</div-->
                                        <div class="item-input">
                                            <textarea id="advice" name="advice"></textarea>
                                        </div>
                                    </div>
                                </div>
                            </li>
                        </ul>
                    </div>

                    <div class="content-block">
                        <a onclick="document.getElementById('advice_add').submit();" class="button form-from-json">提交</a>
                    </div>
                    <div class="content-block">
                        <a onclick="location='/index'" class="button form-from-json" style="color: red;border-color: red">返回</a>
                    </div>
                </div>
                </form>

            </div>
        </div>


    </div>
</div>
<script src="https://cdn.bootcss.com/framework7/1.6.5/js/framework7.min.js"></script>
<script>
    var myApp = new Framework7();
    var param = parseUrlSearch();
    if (param.from == 2) {
    	document.getElementById('title').innerHTML = '参加俄罗斯线下聚会，请输入昵称，电话号，报名场次，人数，备注;如 #聚会 ,大宝,131********,M64,2,有意愿帮忙组织。';
    }
    function parseUrlSearch(){
		var search = location.search;
		if(!search) {
			return {};
		}
		search = search.slice(1).split('&');
		var data = {};
		search.forEach(function(item) {
			item = item.split('=');
			data[item[0]] = item[1]; 
		});
		return data;
	}
</script>

<!--误删-->
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1267142462'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D1267142462%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));</script>

</body>

<script src="https://cdn.bootcss.com/framework7/1.6.5/js/framework7.min.js"></script>
</html>
